package com.hnluchuan.staff.web.controller.admin;
import java.io.IOException;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hnluchuan.core.support.Page;
import com.hnluchuan.staff.common.UserType;
import com.hnluchuan.staff.dto.RoleDTO;
import com.hnluchuan.staff.dto.UserDTO;
import com.hnluchuan.staff.model.Role;
import com.hnluchuan.staff.service.RoleService;
import com.hnluchuan.staff.service.UserRoleService;
import com.hnluchuan.staff.service.UserService;
import com.hnluchuan.staff.web.controller.BaseAdminController;
@Controller
@RequestMapping(value="admin")
public class AdminLoginController {
    @Autowired
    private UserService userService;
    @Autowired
    private UserRoleService userRoleService;
    @Autowired
    private RoleService roleService;
    @RequestMapping(value = "doLogin")
    public String login() throws Exception {
        return "admin/index";
    }
}
